package com.atguigu.ssyx.user.service;

import com.atguigu.ssyx.model.user.User;
import com.atguigu.ssyx.vo.user.LeaderAddressVo;
import com.atguigu.ssyx.vo.user.UserLoginVo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author Windows
* @description 针对表【user(会员表)】的数据库操作Service
* @createDate 2023-11-17 15:42:01
*/
public interface UserService extends IService<User> {

    /**
     * 使用用户openId查询
     * @param openId
     * @return
     */
    User getByOpenid(String openId);

    /**
     * 通过userid获取团长，默认地址
     * @param id
     * @return
     */
    LeaderAddressVo getLeaderAddressVoByUserId(Long id);

    /**
     * 获取登陆要用的vo
     * @param id
     * @return
     */
    UserLoginVo getUserLoginVo(Long id);
}
